<template>
  <div class="app-container">
    <el-form ref="form" :model="form" :rules="rules" label-width="120px">
      <el-form-item label="标题" prop="title">
        <el-input v-model="form.title" placeholder="请输入" />
      </el-form-item>
      <el-form-item label="详情" prop="description">
        <editor v-model="form.description" :min-height="192"/>
      </el-form-item>
      <el-form-item>
        <el-button type="primary" @click="saveExplain">确定</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
import { getExplain, saveExplain } from "@/api/official/referrer2024/index"
export default {
  name: "User",
  dicts: ['business_citys'],
  data() {
    return {
      form: {},
      rules: {},
    }
  },
  created() {
    this.getExplain()
  },
  methods: {
    getExplain() {
      getExplain().then(response => {
        this.form = response.data
      })
    },
    saveExplain() {
      saveExplain(this.form).then(response => {
        this.$modal.msgSuccess("修改成功")
      })
    }
  }
}
</script>

<style scoped>
</style>
